package mvc.views.frames
{
	import alternativa.gui.container.Container;
	
	import flash.display.Sprite;
	import flash.events.Event;
	
	import mx.utils.StringUtil;
	
	/**
	 * 界面框体容器基类
	 * @author xiling
	 */
	public class Frame extends Sprite
	{
		public function Frame()
		{
			super();
			//mouseEnabled=false;
			initUI();
			initEvent();
		}
		
		public function lock():void
		{
			mouseEnabled=false;
			mouseChildren=false;
		}
		
		public function unLock():void
		{
			mouseEnabled=true;
			mouseChildren=true;
		}
		
		public function resize(evt:Event=null):void 
		{
			
		}
		
		protected function initEvent():void
		{
			
		}
		
		protected function initUI():void
		{
			
		}
		
		public function show():void
		{
			
		}
		
		/**
		 * 更新数据
		 * @param $model
		 */
		public function update($model:Object):void
		{
			
		}
		
		/**
		 * 重置视图到初始状态
		 */
		public function reset():void
		{
			
		}
	}
}